package hs;
//20230404430920沈泽华
import java.util.HashSet;

public class Main {
    public static void main(String[] args) {
        HashSet<Student> hashSet = new HashSet<Student>();
        hashSet.add(new Student("张三",24));
        hashSet.add(new Student("李四",23));
        hashSet.add(new Student("张三",21));

        for(Student s:hashSet)
            System.out.println(s);
    }
}
